const request=(path,params) =>{
    let url="https://www.ehomespace.com/api/public/v1/"+path
    return new Promise(function(resolve,reject) {
        wx.request({
            url:url,
            method:"get",
            data:params,
            success:(res)=>{
                resolve(res)
            }
        })
    })

}
export default request